<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
	<meta charset="UTF-8">
	<meta name="viewport"
		  content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Cairo-认证中心</title>
</head>
<body>
<div sec:authorize-expr="isAuthenticated()">
	<h2>已登录 用户: <span sec:authentication="name"></span></h2>
	<h2><a th:href="@{profile}" href="profile.html">去个人主页</a></h2>
	<h2><a th:href="@{logout}"> 登出</a></h2>
</div>
<div sec:authorize-expr="isAnonymous()">
	<h2>未登录, <a th:href="@{/login}" style="color: black"><b>现在去登录</b></a></h2>
</div>
</body>
</html>
